﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Skugo.Shared
{
    public interface IReader
    {
        /// <summary>
        /// Read data from the client.
        /// </summary>
        /// <returns>A buffer of data read, or null if nothing was read.</returns>
        Byte[] Read();
    };

    public interface IWriter
    {
        /// <summary>
        /// Write data to all the clients.
        /// </summary>
        /// <param name="data">The data that we're writing.</param>
        void Write(Byte[] data);
    }
}
